package cn.yh.st.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.yh.st.dubbo.TestDubboService;

@Controller
public class CustomerAction {

	@Resource
	private TestDubboService testDubboService;

	@RequestMapping("test")
	public void test(HttpServletRequest request, HttpServletResponse response) {
		System.out.println("成功");
		List<String> result = testDubboService.getPermission();
		for (int i = 0; i < result.size(); i++) {
			System.out.println(result.get(i));
		}

	}
}
